package com.xiaofei.future;

public class Client {
	public Data doRequest(RequestEntity requestEntity){
		final FutureData futureData= new FutureData();
		new Thread(new Runnable() {
			public void run() {
				RealData realData = new RealData(requestEntity);
				futureData.setResult(realData);
			}
		}).start();
		return futureData;
	}
}	
